//
//  WFWenzTableViewCell.m
//  WangyiFangzuo
//
//  Created by 瑜 on 16/9/13.
//  Copyright © 2016年 111. All rights reserved.
//

#import "WFWenzTableViewCell.h"
#import <UIImageView+WebCache.h>
@implementation WFWenzTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setModel:(WFWenZiModel *)model
{
    _model = model;
    _titleLab.text = [NSString stringWithFormat:@"#%@#",model.name];
    _nameLab.text = model.classification;
    _guanzhuLab.text = [NSString stringWithFormat:@"%d关注",[model.concernCount intValue]];
    _taolunLab.text = [NSString stringWithFormat:@"%d讨论",[model.talkCount intValue]];
    _arr = model.talkContent;
   
        NSURL *url = _arr[0][@"userHeadPicUrl"];
        [_img1 sd_setImageWithURL:url];
        _lab1.text = _arr[0][@"content"];
        NSURL *url1 = _arr[1][@"userHeadPicUrl"];
        [_img2 sd_setImageWithURL:url1];
        _lab2.text = _arr[1][@"content"];
    
}
+ (instancetype)cell
{
    return [[[NSBundle mainBundle] loadNibNamed:@"WFWenzTableViewCell" owner:nil options:nil] lastObject];
}
@end
